home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
CAD
/
PKEY11_1.ARJ
/
MTL.LSP
< prev
next >
Wrap
Text File
|
1992-03-14
|
515b
|
17 lines
;move objects to a new layer
;
; ********Patrick J. McKee, author********
; ****Copyright 1992, Power Key tm****
;
(setq ss (ssget))
(SETQ UL1(GETSTRING "\nLayer to move entities to : "))
(setq counter 0)
(prompt "Moving to layer.....")(princ ul1)
(while
(setq e (ssname ss counter))
(setq l (cdr (assoc 8 (entget e))))
(setq S (ssget "X" (list (cons 8 l))))
(progn
(command "CHANGE" s "" "P" "LA" UL1 ""))
(setq counter (+ counter 1))
(princ))